package homework.course;

import homework.course.role.Student;
import homework.course.role.Teacher;

import java.util.Arrays;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<String> strings = Arrays.asList(
                "今天我们讲些什么内容呢",
                "啊, 我们要讲Java的面向对象",
                "大家都知道, 程序员眼里, 世界是由对象组成的",
                "那什么时对象呢",
                "这里的对象Object可不是你们想的对象呢",
                "对象包括数据和作用于数据的操作",
                "这就对应了对象的属性和方法",
                "对象就是属性和行为(方法)的封装"
        );
        Teacher teacher = new Teacher("eileen", strings.iterator());
        Classroom classroom = new Classroom(50, teacher,
            Student.getInstance("17121617", "童世新"),
            Student.getInstance("17121619", "汪日文"),
            Student.getInstance("17121511", "无名氏"),
            Student.getInstance("17121603", "付庭鹏")
        );
        classroom.mainLoop();
    }
}
